#{extends 'frame.html' /}

#{set title:'绑定买号' /}



#{set 'moreStyles'}

<link rel="stylesheet" media="screen" href="@{'/public/stylesheets/buyerAccount.css'}" />

#{/set}

<div class="contentCard">

	<div class="contentTitle">选择平台</div>

	<div class="contentBody clearfix">

		<div class="filterBlock">

			<div class="clearfix" id="platform">

				#{list items:platforms, as:'p'}

				<span class="checkTextBtn ${p.toString()=='TAOBAO'?'selectedCtb':''}" href="javascript:;" value="${p}">${p.title}</span>

				#{/list}

			</div>

		</div>

	</div>

</div>



<div class="contentCard">

	<div class="contentTitle">

        <span class="floatLeft">已绑定的账号</span>

		<span class="btnSection">

			<span class="grey floatRight f12 ml10">(绑定买号及对应的收货信息，才可以接手任务)</span>
			<span class="grey f12 ml10">
			<!--  
			<img style="vertical-align:middle" border="0" src="@{'/public/images/warn.png'}">
			务必加审核专员&nbsp;
				<a target="_blank" href="http://wpa.qq.com/msgrd?v=3&amp;uin=2010530230&amp;site=qq&amp;menu=yes" class="qq_link"><img style="vertical-align:middle" border="0" src="http://wpa.qq.com/pa?p=2:177805290:51" alt="点击这里给我发消息" title="点击这里给我发消息"></a>
			才可通过审核
			&nbsp;&nbsp;
			</span>
			-->
			<a id="btnAddAccount" class="red floatRight" href="javascript:;"> <i class="iconfont">&#xf018b;</i>

				绑定买号

			</a>

		</span>

		

	</div>

	<div class="contentBody">

		<div class="taskSection">

			<div id="taskTableTitle">

				<table class="normTable">

					<tbody>

						<tr>

							<td class="r_seller">买号</td>
							
							<td class="r_gender">性别</td>

							<td class="r_commision">收货信息</td>

							<td class="r_amount">状态</td>

							<td class="r_number">排序数（点击数字修改）</td>

							<td class="r_amount">操作</td>

							<td class="">备注</td>

						</tr>

					</tbody>

				</table>

			</div>

			<div id="accountContainer"></div>

		</div>

	</div>

</div>



<!--绑定新买号窗口-->

<div class="popWrapper" id="addAccountWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:;" class="wnd_Close_Icon" id="btnCloseAddWnd" title="关闭窗口"></a>

		<h3 class="topTile">绑定新买号</h3>

		<div class="modalWndInner">

			<form id="addForm">

				<div id="shopInfoShower">

					<div class="clearfix">

						<label class="floatLeft wangwangID">用户昵称</label>

						<input type="text" class="inputText floatLeft mr20 required" id="txtNick" name="nick"  />

					</div>


					<div class="mb10">

						<span class="f12 grey" id="nickMsg" style="margin-left:100px;">淘宝平台：买号信用需大于11点，三心以上，不能填写手机号</span>

					</div>
					
					
					<div class="panelLine">
						<label class="floatLeft">性别</label>
						<input name='gender_new' type='radio' value='男' checked> 男
						<input name='gender_new' type='radio' value='女'> 女
					</div>
					

					<div class="panelLine">

						<label class="floatLeft">收货人姓名</label>

						<input type="text" class="inputText floatLeft mr20 required" id="txtConsignee" name="consignee"/>

					</div>

					<div class="panelLine">

						<label class="floatLeft">所在地区</label>

						<div id="selectAdd" class="">

							<select class="selectAddress required province" id="first" name="first">

								<option value="" selected="selected">请选择</option>

								#{list items: regions, as:'re'}

								<option rid="${re.id}">${re.name}</option>

								#{/list}

							</select>

							<select class="selectAddress required city" id="second" name="second">

								<option value="" selected="selected">请选择</option>

							</select>

							<select class="selectAddress required region" id="thrid" name="thrid">

								<option value="" selected="selected">请选择</option>

							</select>

						</div>

					</div>

					<div class="panelLine">

						<label class="floatLeft">街道地址</label>

						<input type="text" class="inputText floatLeft mr20 long required" id="txtAddress" name="address"/>

					</div>

					<div class="panelLine">

						<label class="floatLeft">收货人手机号</label>

						<input type="text" class="inputText floatLeft mr20 required" id="txtMobile" name="mobile"/>

					</div>

				</div>

			</form>

		</div>

		<div class="wndBotButtonSection">

			<a id="btnAccountSave" href="javascript:;" class="botButton btnConfirmSave">确认</a>

		</div>



	</div>



</div>



<!--修改买号窗口-->

<div class="popWrapper" id="bindAccountWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:void(0);" class="wnd_Close_Icon" id="modifyclose" title="关闭窗口"></a>

		<h3 class="topTile">修改买号</h3>

		<form id="modifyForm">

			<div class="modalWndInner">

				<div id="shopInfoShower">

					<div class="panelLine">

						<span class="floatLeft mr20 wangwangID">用户昵称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>

						<div id="nickModify"></div>

					</div>
					
					
					<div class="panelLine">
						<span class="floatLeft mr20 wangwangID">用户性别&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>
						<input name='gender' type='radio' value='男'> 男
						<input name='gender' type='radio' value='女'> 女
					</div>

					<div class="panelLine">

						<span class="floatLeft mr20">收货人姓名&nbsp;&nbsp;&nbsp;&nbsp;</span>

						<input type="text" class="inputText floatLeft mr20 required" id="txtConsigneeMo" name="consignee"/>

					</div>

					<div class="panelLine">

						<div class="floatLeft mr20">所在地区&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</div>

						<div id="selectAdd" class="mr20">

							<select class="selectAddress required province" id="firstMo"  name="first" rid="">

								<option value="" selected="selected">请选择</option>

								#{list items: regions, as:'re'}

								<option rid="${re.id}">${re.name}</option>

								#{/list}

							</select>

							<select class="selectAddress required city" id="secondMo" name="second" rid="">

								<option value="" selected="selected">请选择</option>

							</select>

							<select class="selectAddress required region" id="thridMo" name="thrid">

								<option value="" selected="selected">请选择</option>

							</select>

						</div>

					</div>

					<div class="panelLine">

						<span class="floatLeft mr20">街道地址&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span>

						<input type="text" class="inputText floatLeft mr20 long required" id="txtAddressMo" name="address"/>

					</div>

					<div class="panelLine">

						<span class="floatLeft mr20">收货人手机号&nbsp;</span>

						<input type="text" class="inputText floatLeft mr20 required" id="txtMobileMo" name="mobile"/>

					</div>

				</div>

			</div>

		</form>

		<div class="wndBotButtonSection">

			<a id="btnConfirmSave" href="javascript:;" class="botButton btnConfirmSave">确认</a>

		</div>



	</div>



</div>





<!--修改排序号-->

<div class="popWrapper" id="orderNumberWnd">

	<div class="maskLayer"></div>

	<div class="modalWnd">

		<a href="javascript:void(0);" class="wnd_Close_Icon" title="关闭窗口"></a>

		<h3 class="topTile">修改排序号（排序号0-10，排序数越小，任务大厅显示越靠前）</h3>

		<form id="modifyOrderNumberForm">

			<div class="modalWndInner">

				<div id="shopInfoShower">

					<div class="panelLine">

						<span class="floatLeft mr20">新排序号&nbsp;&nbsp;&nbsp;&nbsp;</span>

						<input type="text" class="inputText floatLeft mr20 required orderNumber" name="orderNumber" id="orderNumberModify"/>

					</div>

				</div>

			</div>

		</form>

		<div class="wndBotButtonSection">

			<a id="btnOrderNumberSave" href="javascript:;" class="botButton btnConfirmSave">确认</a>

		</div>



	</div>



</div>



<!-- templates -->

<textarea id="accountTemp" class="muban">

	{{#results}}

	<div class="taskRow">

		<table class="normTable">

			<tbody>

				<tr>

					<td class="r_seller">
						<span class="zcNick">{{nick}}</span>
					</td>
					
					<td class="r_seller">
						<span class="zcGender">{{gender}}</span>
					</td>

					<td class="r_commision">

						<span class="zcState">{{state}}</span>

						<span class="zcCity">{{city}}</span>

						<span class="zcRegion">{{region}}</span>

						<span class="zcAddress">{{address}}</span>

						<br />

						<span class="zcConsignee">{{consignee}}</span>

						&nbsp;&nbsp;

						<span class="zcMobile">{{mobile}}</span>

					</td>

					<td class="linkUrl">

						<span class="zcStatus" status="{{status}}">{{accountStatus}}</span>

					</td>

					<td class="linkUrl">

						<a href="javascript:;" class="modifyOrderNumberBtn grey" aid="{{id}}">{{orderNumber}}</a>

					</td>

					<td class="linkUrl">

						{{^hasTaskExecuting}}

						<a href="javascript:;" class="modifyBtn grey" aid="{{id}}">修改</a>

						{{/hasTaskExecuting}}{{#hasTaskExecuting}}任务未完成 无法修改{{/hasTaskExecuting}}

					</td>

					<td class="">

						{{#memos}}

						<span class="">{{content}}[{{dateTimeStr}}]</span><br/>

						{{/memos}}

					</td>

				</tr>

			</tbody>

		</table>

	</div>

	{{/results}}

</textarea>



<textarea id="quyuTemp" class="muban">

	{{#results}}

	<option rid="{{id}}">{{name}}</option>

	{{/results}}

</textarea>



#{set 'moreScripts'}

<script src="@{'/public/javascripts/mustache.min.js'}" type="text/javascript"></script>

<script type="text/javascript">App.module = 'buyerAccount';App.vipStatus = '${user.vipStatus}';</script>

<script src="@{'/public/javascripts/buyerAccount.js'}" type="text/javascript"></script>

#{/set}